package com.nervenets.template.controller.data;

import com.nervenets.general.entity.ResponseResult;
import com.nervenets.general.exception.LogicException;
import com.nervenets.general.jwt.aspect.JwtRole;
import com.nervenets.general.web.BaseEntityController;
import com.nervenets.general.web.params.IdsParams;
import com.nervenets.template.controller.data.params.DataOfMoneyFormParams;
import com.nervenets.template.controller.data.params.DataOfMoneyPagingParams;
import com.nervenets.template.hibernate.domain.data.DataOfMoney;
import com.nervenets.template.service.DataOfMoneyService;
import io.swagger.annotations.Api;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;


@Api(value = "现金统计接口v1", tags = "现金统计相关接口")
@RestController
@RequestMapping("/api/money/data")
@JwtRole(group = "wealth", groupName = "资产管理", function = "money", functionName = "现金统计", queue = 299)
public class DataOfMoneyController extends BaseEntityController<DataOfMoney, DataOfMoneyService, DataOfMoneyFormParams, DataOfMoneyPagingParams, DataOfMoney, DataOfMoney> {
    @Override
    public ResponseEntity<ResponseResult<DataOfMoney>> edit(@Valid @RequestBody DataOfMoneyFormParams params, HttpServletRequest request, HttpServletResponse response) {
        throw new LogicException("not support");
    }

    @Override
    public ResponseEntity<ResponseResult<Void>> del(@Valid @RequestBody IdsParams params, HttpServletRequest request, HttpServletResponse response) {
        throw new LogicException("not support");
    }
}
